Leat\Api\Connection D

Total Complexity 196
Dependencies 20
Dependents 21
Total lines 1,661
Lines of code 1,085
Logical lines of code 495
Comment lines 284
Methods 54
Properties 2

Methods 54

Method Rating Maintainability Complexity Lines of code
ensure_custom_attributes_exist()
A
33 6 128
get_shops()
A
48 10 33
apply_credits()
A
48 10 33
format_contact()
A
46 8 39
find_or_create_wp_user_by_uuid()
A
48 8 34
send_giftcard_email()
A
48 7 35
get_purchased_categories()
S
50 7 30
get_woocommerce_user_data()
S
44 6 43
get_contact_by_wp_id()
S
51 6 29
log_exception()
S
51 6 28
create_reward_reception()
S
53 5 24
get_rewards_for_contact()
S
54 5 22
update_contact()
S
54 5 22
get_rewards()
S
56 5 20
sync_basic_attributes_from_order()
S
50 4 27
refund_credits_partial()
S
54 4 22
refund_credits_full()
S
58 4 17
get_contact_by_uuid()
S
57 4 17
get_promotions()
S
57 4 17
get_contact_by_email()
S
57 4 17
list_giftcard_programs()
S
57 4 17
get_shop()
S
58 4 16
create_contact()
S
58 4 16
get_contact_uuid_by_wp_id()
S
58 4 15
get_woocommerce_guest_data()
S
47 2 35
create_giftcard_transaction()
S
56 3 19
create_giftcard()
S
57 3 18
get_user_attributes()
S
55 3 17
sync_attributes_with_category_update()
S
60 3 14
sync_user_attributes()
S
60 3 13
sync_guest_attributes()
S
60 3 13
reverse_giftcard_transaction()
S
61 3 13
init_client()
S
62 3 12
create_giftcard_refund_transaction()
S
63 3 11
get_product_categories_options()
S
59 2 16
format_reward()
S
58 2 16
get_items_for_sync()
S
64 3 10
get_total_products_purchased()
S
64 3 10
attribute_exists()
S
67 3 8
get_first_order_date()
S
59 2 15
get_user_reward_logs()
S
60 2 12
add_reward_log()
S
56 1 19
format_voucher()
S
56 1 19
has_api_key()
S
75 2 4
get_api_key()
S
69 2 7
__construct()
S
66 2 9
get_default_wc_attributes()
S
60 1 14
format_promotion()
S
61 1 12
get_user_leat_metadata()
S
63 1 11
get_multisite_blogs()
S
68 1 7
format_giftcard_program()
S
64 1 10
format_giftcard()
S
69 1 7
format_giftcard_transaction()
S
69 1 7
format_shop()
S
71 1 6